$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .main {
    margin: 6vw 0 0 0;
    display: flex;
    justify-content: space-between;
    .l {
      width: 35%;

      .pic {
        img {
          width: 100%;
          display: block;
          object-fit: cover;
        }
      }

      .info {
        background: #1B2170;
        padding: 5vw;
        color: white;

        .email {
          font-size: $fontSize_36;
          border-bottom: 4px solid white;
          font-family: 'Montserrat-Regular.otf';
          color:white;
        }

        .phone {
          font-size: $fontSize_22;
          font-family: 'Montserrat-Regular.otf';
          margin: 1vw 0 0.8vw 0;
          color:white;
          display: block;
        }

        .line {
          width: 15px;
          height: 1px;
          background: rgba(255, 255, 255, 0.50);
        }

        .des {
          font-size: $fontSize_16;
          margin: 4vw 0 1vw 0;
        }

        .des2 {
          font-size: $fontSize_16;
        }
      }
      .map{
        img{
          width: 100%;
          display: block;
          object-fit: cover;
        }
      }
    }

    .r {
      width: 65%;

      .box {
        padding: 6vw 20%;

        .t {
          color: #000;
          font-size: $fontSize_48;
          font-family: 'Montserrat-Regular.otf';
          font-weight: 600;
          text-transform: uppercase;
        }

        .form {
          .i1 {
            display: flex;
            justify-content: space-between;
            margin-top: 1.5vw;

            .item {
              width: 48%;
              border-bottom: 1px solid #9EADBF;
              display: flex;
              padding: 0.6vw 0;

              .tag {
                color: #000;
                font-size: $fontSize_16;
                display: flex;

                span {
                  color: #E50000;
                }
              }

              input,
              select {
                margin-left: 0.8vw;
                outline: none;
                border: none;
                font-size: $fontSize_16;
                width: fit-content;
              }
            }
          }

          .chose1 {
            .item {
              justify-content: space-between;

              select {
                width: 85%;
                margin-left: 0;
              }
            }
          }

          .i11 {
            .item {
              width: 100%;
            }
          }

          .i2 {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 2vw;

            .tag {
              width: 20%;
              color: #000;
              font-size: $fontSize_16;
              display: flex;

              span {
                color: #E50000;
              }
            }

            .chose {
              width: 80%;
              border-bottom: 1px solid #9EADBF;
              padding: 0.6vw 0;

              select {
                width: 100%;
                outline: none;
                border: none;
                font-size: $fontSize_16;
                color: rgba(0, 0, 0, .5);
              }
            }
          }

          .i3 {
            margin : 2vw 0;

            .tag {
              color: #000;
              font-size: $fontSize_16;
            }

            .nr {
              margin-top: 1vw;

              textarea {
                width: 96%;
                border-radius: 3px;
                background: #F7F7FD;
                height: 240/$f+vw;
                border: none;
                padding: 15px 2%;
                resize: none;
                font-size: $fontSize_16;
              }
            }
          }

          .submit {
            width: 100%;
            button{
              border-radius: 43/$f+vw;
              background: #000;
              color:white;
              text-align: center;
              padding: 1vw 0;
              font-size: $fontSize_22;
              cursor: pointer;
              transition: all 600ms;
              display: block;
              width: 100%;
              &:hover{
                background: #1B2170;
              }
            }
          }
        }
      }
    }
  }


  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .main{
      flex-direction: column;
      margin: 0;
      .l{
        width: 100%;
        .info{
          padding: 20px 5%;
          .email{
            font-size: 24px;
            border-bottom: 2px solid white;
          }
          .phone{
            font-size: 16px;
            margin: 15px 0 10px 0;
          }
          .des{
            font-size: 16px;
            margin: 40px 0 10px 0;
          }
          .des2{
            font-size: 16px;
          }
        }
      }
      .r{
        width: 100%;
        .box{
          padding: 30px 5%;
          .t{
            font-size: 24px;
          }
          .form{
            .i1{
              margin-top:0;
              flex-direction: column;
              .item{
                width: 100%;
                padding: 10px 0;
                margin-top: 20px;
                .tag{
                  font-size: 16px;
                }
                input,select{
                  font-size: 16px;
                  margin-left: 10px;
                }
              }
            }
            .chose1{
              .item:nth-child(2){
                justify-content: flex-start;
              }
            }
            .i2{
              margin-top: 20px;
              .tag{
                font-size: 16px;
                width: 40%;
              }
              .chose{
                width: 60%;
                select{
                  font-size: 16px;
                }
              }
            }
            .i3{
              margin: 20px 0;
              .tag{
                font-size: 16px;
              }
              .nr{
                margin-top: 10px;
                textarea{
                  font-size: 16px;
                  padding: 15px 5%;
                  width: 90%;
                  height: 150px;
                }
              }
            }
            .submit{
             button{
              padding: 12px 0;
              font-size: 16px;
              border-radius: 50px;
             }
            }
          }
        }
      }
    }
  }
}